package com.zst.organizationservice.service;

import com.zst.organizationservice.mapper.OrganizationMapper;
import com.zst.organizationservice.model.Organization;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.UUID;

@Service
public class OrganizationService {
    @Autowired
    private OrganizationMapper mapper;

    public Organization getOrg(String organizationId) {
        return mapper.getOrg(organizationId);
    }

//    public void saveOrg(Organization org){
//        org.setId( UUID.randomUUID().toString());
//        orgRepository.save(org);
//
//    }
//
//    public void updateOrg(Organization org){
//        orgRepository.save(org);
//    }
//
//    public void deleteOrg(Organization org){
//        orgRepository.delete( org.getId());
//    }
}
